package com.wushibo.adddatabackend.controller;

import com.wushibo.adddatabackend.service.impl.PersonInforServiceImpl;
import com.wushibo.adddatabackend.utils.Result;
import com.wushibo.adddatabackend.utils.ResultUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/get")
@Api(value = "GetData Controller",tags = "获取疫情数据接口")
public class GetPersonInfor {
    @Autowired
    private PersonInforServiceImpl personInforServiceImpl;

    @ApiOperation(value = "获取数据接口", notes = "获取数据", httpMethod = "GET")
    @RequestMapping("/persondata")
    public Result getPersonInfor(){
        return ResultUtil.success(personInforServiceImpl.getPersonInfor());
    }
}
